<div class="links">
<?php 
	$topmn=top_menu();
	while($row_top=mysql_fetch_assoc($topmn)){
?>
	<a href="#"><?php echo $row_top['title'];?></a>
<?php }?>
</div>